import req from "@/utils/req";
const access_token = "6b44a37a-0df2-4a8a-a4b8-7c0cd2d2a222";
// 请求主题视频内容
export const reqZoneList = (pageSize: number) => {
  return req.get<any, any>("/apis/moment/activityZones/collect/default", {
    params: {
      access_token,
      pageSize,
    },
  });
};

// http://zsjyyds.online:9000/apis/moment/properties/filter/vip_zone?access_token=6b44a37a-0df2-4a8a-a4b8-7c0cd2d2a222

// 小标签名字及id
export interface choisesvideo {
  name: string;
  id: string;
}

export type choisesvideoList = choisesvideo[];

// 请求的全部标签的全部类型
export interface choisesvideoAll {
  choises: choisesvideoList;
  formType: string;
  label: string;
  name: string;
  style: string;
  valueType: string;
}

export type choisesvideoAllList = choisesvideoAll[];

// 请求标签列表
export const reqVipZoneList = () => {
  return req.get<any, choisesvideoAllList>(
    "/apis/moment/properties/filter/vip_zone",
    {
      params: {
        access_token,
      },
    }
  );
};

// http://zsjyyds.online:9000/apis/moment/moments/collect/vip_zone/sellCountDesc?access_token=6b44a37a-0df2-4a8a-a4b8-7c0cd2d2a222&pageSize=20&pageNum=0
export const reqVipZoneIntegrated = (pageSize:number, pageNum:number) =>{
  return req.get<null, any>('apis/moment/moments/collect/vip_zone/integrated', {
      params: {
          access_token,
          pageSize,
          pageNum
      }
  })
}
